
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:fragment="head-fragment(title,path)">
    <meta charset="UTF-8">
    <title>网上鲜花系统 dr-mall</title>
    <link rel="stylesheet" th:href="@{/mall/css/swiper.min.css}">
    <link rel="stylesheet" th:href="@{/mall/css/iconfont.css}">
    <link rel="stylesheet" th:href="@{/mall/css/common.css}">
    <link rel="stylesheet" th:href="@{/mall/styles/header.css}">
    <link rel="stylesheet" th:href="@{'/mall/styles/'+${path}+'.css'}">
    <link rel="stylesheet" th:href="@{/admin/plugins/sweetalert/sweetalert.css}"/>
    <link rel="stylesheet" th:href="@{/mall/css/bootstrap-modal.css}">
   </head>
<nav id="nav" th:fragment="nav-fragment">
    <div class="banner_x center">
      <div style="    margin-left: 25%;">
          <a th:href="@{/index}" target="_blank" style="font-size: 40px; display: block;color: #124239;padding-top: 20px;">网上鲜花系统</a>
          <span style="color: #ccc;font-family: monospace;">flowers and plants mall</span>
      </div>


        <div class="fr">
            <div class="search">
                <input class="text" type="text" id="keyword" autocomplete="off">
                <div class="search_hot">
                </div>
            </div>
            <div class="button iconfont icon-search" onclick="search()"></div>
        </div>
    </div>
</nav>
<header id="header" th:fragment="header-fragment">
    <div class="center" style="display: unset;">
        <div class="fr pull-right">
            <th:block th:unless="${session.newBeeMallUser==null}">
                <div class="shopcart">
                    <a th:href="@{/shop-cart}" style="color: white;"><i class="iconfont icon-cart"></i>
                        购物车(
                        <th:block th:text="${session.newBeeMallUser.shopCartItemCount}"></th:block>
                        )</a>
                </div>
                <div class="user">
                    <div>
                        <ul class="selector">
                            <li>
                                <a th:href="@{/personal}">
                                    个人中心
                                </a>
                            </li>
                            <li>
                                <a th:href="@{/orders}">
                                    我的订单
                                </a>
                            </li>
                            <li>
                                <a th:href="@{/logout}">
                                    退出登录
                                </a>
                            </li>
                        </ul>
                    </div>

                    <a href="##" class="username" style="z-index: 9999;background:#b5b0b!important;">
                        <span th:text="${session.newBeeMallUser.nickName ==''?session.newBeeMallUser.loginName:session.newBeeMallUser.nickName}"></span>
                        <i class="iconfont icon-down"></i>
                    </a>
                </div>

            </th:block>
            <th:block th:if="${session.newBeeMallUser==null}">
                <ul class="login">
                    <li><a th:href="@{/login}">登录</a></li>
                    <li><a th:href="@{/register}">注册</a></li>
                </ul>
                <div class="shopcart">
                    <a href="##" style="color: white;"><i class="iconfont icon-cart"></i>
                        购物车(0)</a>
                </div>
            </th:block>
        </div>
    </div>
</header>
</html>
